Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


ViewTypeChanged

The ViewTypeChanged method is called to notify this part that the view type of one of its display frames has changed.

void ViewTypeChanged (in ODFrame frame);
frame
A reference to a display frame for this part.
DISCUSSION
OpenDoc calls this method when this part's display frame changes its view type.

Your part's ViewTypeChanged method should examine the new view type using its frame's GetViewType method. It should then display itself in the specified display frame according to the indicated view type. If your part does not support the requested view type, it should instead pick a view type that it can support and then call its frame's SetViewType method to update the view type in the frame.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.

EXCEPTIONS
kODErrInvalidFrame
The specified frame is not a display frame of this part.
SEE ALSO
The ODFrame::GetViewType method (page 323).
The ODFrame::SetViewType method (page 339).
"The ViewTypeChanged Method" on page 70 in OpenDoc Cookbook.
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"View Type" on page 155 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help